package com.yztstudy.Mapper;

import com.yztstudy.Entity.Item;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Item的数据访问层接口
 */

@Mapper
public interface ItemMapper {

    public abstract Integer addItem(Item item); //新增订单详情

    public abstract List<Item> getItemsByOrderID(Integer orderID); //根据订单ID查询里面的内容

    public abstract Integer deleteItemsByOrderId(Integer orderID); //根据orderID删除所对应的items
}
